package cn.lyf.listener;

import org.springframework.stereotype.Component;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;

@Component
public class Listener2 implements ApplicationListener<MyEvent> {

    @Override
    public void onApplicationEvent(MyEvent event) {
        System.out.println("你触发了监听器Listener2");
    }

}
